package com.hgkj.cloud.base.scheme.table;

import com.hgkj.cloud.base.scheme.ClsAnswerRequest;
import com.hgkj.cloud.base.scheme.ClsAnswerResult;
import com.hgkj.cloud.base.scheme.ClsScore;

import java.util.Map;

/**
 * 1: 瑞文标准推理测验（Rw）共60题
 * <p>
 * 计算规则：https://wenku.baidu.com/view/5b73eb0ccfbff121dd36a32d7375a417866fc1ac.html?_wkts_=1702865275596&bdQuery=%E7%91%9E%E6%96%87%E6%A0%87%E5%87%86%E6%8E%A8%E7%90%86%E6%B5%8B%E9%AA%8C%E8%AE%A1%E7%AE%97%E5%88%86%E6%95%B0%E3%80%81%E6%8D%A2%E7%AE%97%E6%A0%87%E5%87%86
 */
public class Table1 extends AbstractTable implements TableCalculate {
    String code = "Rw";

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public ClsAnswerResult calc(ClsAnswerRequest answer) {
        return GetRwFactorScore(answer);
    }

    @Override
    public String[] report(Map map) {
        return GetRwReport(map);
    }

    private ClsAnswerResult GetRwFactorScore(ClsAnswerRequest answer) {
        ClsAnswerResult result = new ClsAnswerResult();
        result.setMessage("");
        result.setType(answer.getType());
        result.setUuid(answer.getUuid());
        try {
            // 1正确题数，2智力百分比等级，3能智商数，4知觉辨别力，5类同比较能力，6比较推理能力，7系列关系能力，8抽象推理能力
            int MAX_NUM = 60;
            // 题目的正确答案
            String strTemp = "4,5,1,2,6,3,6,2,1,3,4,5,2,6,1,2,1,3,5,6,4,3,4,5,8,2,3,8,7,4,5,1,7,6,1,2,3,4,3,7,8,6,5,4,1,2,5,6,7,6,8,2,1,5,1,6,3,2,4,5";
            String[] strAnswer_s = strTemp.split(",");

            int intI;
            //题目的用户答案
            String[] strAnswer_c = answer.getAnswer().split(g_sChar);
            if (strAnswer_c.length > 1) {
                for (intI = 1; intI < strAnswer_c.length; intI++) {
                    strAnswer_c[intI] = strAnswer_c[intI].trim();
                }
            }

            //60个用户答案
            String[] sAnswer = strAnswer_c[0].split(g_nChar);

            if (sAnswer.length != MAX_NUM) {
                result.setMessage("答案数量不符！");
                return result;
            }

            int i, j;

            int[] vFactorA = new int[8];
            for (i = 0; i < vFactorA.length; i++) {
                vFactorA[i] = 0;
            }

            // 原始分
            int intLocal;
            // 后五个因子
            for (i = 0; i < 5; i++) {
                for (j = 0; j < 12; j++) {
                    intLocal = i * 12 + j;
                    if (sAnswer[intLocal].equals(strAnswer_s[intLocal])) {
                        vFactorA[i + 3] += 1; //单项分
                    }
                }
                vFactorA[0] += vFactorA[i + 3];//总分
            }

            String strLevel = "";
            String strIQ = "";

            // LEVEL，IQ (分年龄段)
            float floAge = answer.getAge();
            if (floAge < 6) {
                strLevel = "0,1,1,2,2,3,3,4,4,5,7,8,10,25,33,42,50,53,56,58,61,64,67,69,72,75,79,83,86,90,92,92,93,94,95,96,97,98,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100";
                strIQ = "64,65,65,66,66,66,67,67,67,68,69,70,71,82,88,94,99,101,103,105,107,109,111,113,115,117,119,122,125,127,128,129,129,130,131,131,132,133,133,134,135,136,136,137,138,138,139,140,141,141,142,143,143,144,145,145,146,147,148,148,149";

            } else if (6 <= floAge && floAge < 6.5) {
                strLevel = "0,1,1,2,2,3,3,4,4,5,7,8,10,25,31,38,44,50,53,56,59,63,66,69,72,75,78,80,83,85,88,90,91,92,93,94,95,96,97,98,99,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100";
                strIQ = "64,65,65,66,66,66,67,67,67,68,69,70,71,82,86,91,95,99,102,104,106,108,110,112,115,117,119,120,122,124,126,127,128,129,129,130,131,132,132,133,134,134,135,136,136,137,138,139,139,140,141,141,142,143,143,144,145,146,146,147,148";

            } else if (6.5 <= floAge && floAge < 7) {
                strLevel = "0,1,1,2,2,3,3,4,4,5,5,8,10,25,30,35,40,45,50,54,57,61,64,68,71,75,78,80,83,85,88,90,91,92,93,93,94,95,96,97,98,98,99,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100";
                strIQ = "64,65,65,65,66,66,66,66,67,68,68,70,71,82,85,89,92,96,99,102,104,107,109,112,114,117,119,120,122,124,126,127,128,129,129,130,130,131,131,132,133,133,134,134,135,136,136,137,137,138,138,139,140,140,141,141,142,143,144,144,144";

            } else if (7 <= floAge && floAge < 7.5) {
                strLevel = "0,1,1,2,2,3,3,4,4,5,5,8,10,25,29,33,38,42,46,50,54,58,63,67,71,75,76,78,79,80,82,83,85,86,87,89,90,91,91,92,93,94,94,95,96,96,97,98,99,100,100,100,100,100,100,100,100,100,100,100,100";
                strIQ = "64,65,65,65,66,66,66,67,67,68,68,70,71,82,85,88,91,94,96,99,102,105,108,111,114,117,118,119,120,121,122,123,124,124,125,126,127,128,128,129,129,130,130,131,132,132,133,134,134,135,136,136,137,138,139,139,140,141,142,143,144";

            } else if (7.5 <= floAge && floAge < 8) {
                strLevel = "0,1,2,2,2,3,3,4,4,5,5,8,10,25,28,31,34,38,41,44,47,50,53,55,58,60,63,65,68,70,73,75,77,79,81,84,86,88,90,91,92,93,93,94,95,96,97,98,98,99,100,100,100,100,100,100,100,100,100,100,100";
                strIQ = "64,65,65,65,66,66,66,67,67,68,68,70,71,82,84,86,88,91,93,95,97,99,101,103,105,106,108,110,112,113,115,117,118,120,121,123,124,126,127,128,128,129,130,130,131,131,132,133,133,134,134,135,136,136,137,138,139,140,141,142,143";

            } else if (8 <= floAge && floAge < 8.5) {
                strLevel = "0,1,1,2,2,3,3,4,4,5,5,7,8,10,18,28,28,31,34,38,41,44,47,50,53,56,59,63,66,69,72,75,77,79,81,83,84,86,88,90,91,92,93,94,95,96,97,98,99,100,100,100,100,100,100,100,100,100,100,100,100";
                strIQ = "64,65,65,65,66,66,66,67,67,68,68,69,70,71,77,82,84,86,88,91,93,95,97,99,102,104,106,108,110,112,115,117,118,119,121,122,123,125,126,127,128,129,129,130,131,132,132,133,134,134,135,136,136,137,138,139,139,140,141,142,143";

            } else if (8.5 <= floAge && floAge < 9) {
                strLevel = "0,1,1,1,2,2,3,3,3,4,4,5,5,8,10,13,15,18,20,23,25,28,31,33,36,39,42,44,47,50,56,63,69,75,77,79,81,84,86,88,90,91,92,93,94,95,96,97,98,99,100,100,100,100,100,100,100,100,100,100,100";
                strIQ = "64,64,65,65,66,66,66,66,67,67,67,68,68,70,71,73,75,77,78,80,82,84,86,88,90,92,94,95,97,99,104,108,112,117,118,120,121,123,124,126,127,128,128,129,130,131,132,132,133,134,134,135,136,136,137,138,139,140,141,142,143";

            } else if (9 <= floAge && floAge < 9.5) {
                strLevel = "0,0,1,1,2,2,3,3,3,4,4,5,5,8,10,11,13,14,15,17,18,20,21,22,24,25,28,31,34,35,36,44,47,50,56,63,69,75,78,80,83,85,88,90,91,93,94,95,96,98,99,100,100,100,100,100,100,100,100,100,100";
                strIQ = "64,65,65,65,66,66,66,66,67,67,67,68,68,70,71,72,73,74,75,76,77,78,79,80,81,82,84,86,88,91,93,95,97,99,104,108,112,117,119,120,122,124,126,127,128,129,130,131,132,133,134,134,135,136,137,138,139,140,141,142,143";

            } else if (9.5 <= floAge && floAge < 10) {
                strLevel = "0,0,1,1,2,2,2,3,3,3,4,4,5,5,6,8,9,10,12,13,15,16,18,19,21,22,24,25,28,31,34,38,41,44,47,50,56,63,69,75,77,79,81,83,84,86,88,90,92,93,95,97,99,100,100,100,100,100,100,100,100";
                strIQ = "64,65,65,65,65,66,66,66,67,67,67,67,68,68,69,70,70,71,72,73,75,76,77,78,79,80,81,82,84,86,88,91,93,95,97,99,104,108,112,117,118,119,121,122,123,125,126,127,129,130,131,132,133,134,136,137,138,139,140,141,143";

            } else if (10 <= floAge && floAge < 10.5) {
                strLevel = "0,0,1,1,2,2,2,3,3,3,4,4,5,5,6,8,9,10,12,13,15,16,18,19,21,22,24,25,28,31,34,38,41,44,47,50,54,57,61,64,68,71,75,78,80,83,85,88,90,93,95,98,100,100,100,100,100,100,100,100,100";
                strIQ = "64,65,65,65,65,66,66,66,67,67,67,67,68,68,69,70,70,71,72,73,75,76,77,78,79,80,81,82,84,86,88,91,93,95,97,99,102,104,107,109,112,114,117,119,120,122,124,126,127,129,131,132,133,134,135,136,137,138,140,141,143";

            } else if (10.5 <= floAge && floAge < 11) {
                strLevel = "0,0,1,1,1,1,2,2,2,3,3,3,3,4,4,4,4,5,5,6,6,7,8,9,9,10,12,14,16,19,21,23,25,29,32,36,39,43,46,50,58,67,75,77,79,81,84,86,88,90,95,100,100,100,100,100,100,100,100,100,100";
                strIQ = "64,65,65,65,65,65,66,66,66,66,66,67,67,67,67,67,67,68,68,68,69,69,70,70,71,71,73,74,76,77,79,80,82,84,87,89,92,94,97,99,105,111,117,118,120,121,123,124,126,127,131,134,135,136,137,138,139,140,141,142,143";

            } else if (11 <= floAge && floAge < 11.5) {
                strLevel = "0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,6,7,8,8,9,10,12,14,16,18,19,21,23,25,29,33,38,42,46,50,56,63,69,75,77,79,81,84,86,88,90,93,95,98,100,100,100,100,100,100,100";
                strIQ = "64,65,65,65,65,65,65,66,66,66,66,66,67,67,67,67,67,67,68,68,68,69,70,70,71,71,73,74,75,77,78,79,81,82,85,88,91,94,96,99,104,108,112,117,118,120,121,123,124,126,127,129,131,133,134,135,136,137,138,140,142";

            } else if (11.5 <= floAge && floAge < 12) {
                strLevel = "0,0,1,1,1,1,2,2,2,2,3,3,3,4,4,4,4,4,5,5,6,7,8,8,9,10,12,13,15,16,18,19,21,22,24,25,29,32,36,39,43,46,50,58,67,75,78,81,84,87,90,92,93,95,97,98,100,100,100,100,100";
                strIQ = "64,65,65,65,65,65,65,65,66,66,66,66,67,67,67,67,67,67,68,68,68,69,70,70,71,71,72,73,75,76,77,78,79,80,81,82,84,87,89,92,94,97,99,105,111,117,119,121,123,125,129,129,130,131,132,133,134,136,138,140,142";

            } else if (12 <= floAge && floAge < 12.5) {
                strLevel = "0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,6,8,9,10,12,13,15,16,18,19,21,22,24,25,29,32,37,39,43,46,50,56,63,69,75,79,83,86,90,92,93,95,97,98,100,100,100,100,100";
                strIQ = "64,65,65,65,65,65,65,66,66,66,66,66,66,67,67,67,67,67,67,68,68,68,69,70,70,71,72,73,75,76,77,78,79,80,81,82,84,87,89,92,94,97,99,104,108,112,117,119,122,125,127,129,130,131,132,133,134,136,138,140,142";

            } else if (12.5 <= floAge && floAge < 13) {
                strLevel = "0,0,0,1,1,1,1,2,2,2,2,2,2,3,3,3,3,4,4,4,4,5,5,6,6,6,7,7,8,8,9,9,10,10,12,14,16,19,21,23,25,30,35,40,45,50,55,60,65,70,75,83,90,95,100,100,100,100,100,100,100";
                strIQ = "64,65,65,65,65,65,65,65,66,66,66,66,66,66,66,67,67,67,67,67,67,68,68,68,68,69,69,69,70,70,70,71,71,71,73,74,76,77,79,80,82,85,89,92,96,99,103,106,110,113,117,122,127,131,132,133,134,136,138,140,142";

            } else if (13 <= floAge && floAge < 13.5) {
                strLevel = "0,0,0,1,1,1,1,1,1,2,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,6,7,8,9,10,13,16,19,22,25,30,35,40,45,50,55,60,65,70,75,83,90,95,100,100,100,100,100,100,100";
                strIQ = "64,64,65,65,65,65,65,65,65,65,66,66,66,66,66,66,66,66,66,67,67,67,67,67,67,67,67,68,68,68,68,69,69,70,71,71,73,76,78,80,82,85,89,92,96,99,103,106,110,113,117,122,127,131,132,133,134,136,138,140,142";

            } else if (13.5 <= floAge && floAge < 14) {
                strLevel = "0,0,0,1,1,1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,7,8,10,12,14,16,19,21,23,25,31,38,44,50,56,63,69,75,83,90,93,95,98,100,100,100,100,100";
                strIQ = "64,65,65,65,65,65,65,65,65,65,65,66,66,66,66,66,66,66,66,66,67,67,67,67,67,67,67,67,67,68,68,68,68,69,70,71,73,74,76,77,79,80,82,86,91,95,99,104,108,112,117,122,127,129,131,133,134,136,138,140,141";

            } else if (14 <= floAge && floAge < 14.5) {
                strLevel = "0,0,0,0,1,1,1,1,1,1,1,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,8,10,12,14,16,19,21,23,25,30,35,40,45,50,63,75,83,90,92,93,95,97,98,100,100,100";
                strIQ = "64,64,65,65,65,65,65,65,65,65,65,65,66,66,66,66,66,66,66,66,66,67,67,67,67,67,67,67,67,67,67,68,68,68,68,70,71,73,74,76,77,79,80,82,85,89,92,96,99,108,117,122,127,129,130,131,132,133,135,138,140";

            } else if (14.5 <= floAge && floAge < 15) {
                strLevel = "0,0,0,0,1,1,1,1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,7,8,10,12,14,16,19,21,23,25,30,35,40,45,50,58,67,75,83,90,92,93,95,97,98,100,100";
                strIQ = "64,64,65,65,65,65,65,65,65,65,65,66,66,66,66,66,66,66,66,66,66,67,67,67,67,67,67,67,67,67,67,68,68,68,69,70,71,73,75,76,77,79,80,82,85,89,92,96,99,105,111,117,122,127,129,130,131,132,133,137,140";

            } else if (15 <= floAge && floAge < 15.5) {
                strLevel = "0,0,0,0,1,1,1,1,1,1,1,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,8,10,12,14,16,19,21,23,25,30,35,40,45,50,58,67,75,80,85,90,92,93,95,97,98,100";
                strIQ = "64,64,65,65,65,65,65,65,65,65,65,65,66,66,66,66,66,66,66,66,66,67,67,67,67,67,67,67,67,67,67,68,68,68,68,70,71,73,74,76,77,79,80,82,85,89,92,96,99,105,111,117,120,124,127,129,130,131,132,136,139";

            } else if (15.5 <= floAge && floAge < 16) {
                strLevel = "0,0,0,0,1,1,1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,6,6,7,8,9,10,10,18,25,29,33,38,42,46,50,58,67,75,80,85,90,93,95,98,100,100";
                strIQ = "64,65,65,65,65,65,65,65,65,65,65,65,65,66,66,66,66,66,66,66,66,67,67,67,67,67,67,67,67,67,67,68,68,68,68,68,69,69,70,70,70,71,77,82,85,88,91,94,96,99,105,111,117,120,124,127,129,131,133,136,140";

            } else if (16 <= floAge && floAge < 16.5) {
                strLevel = "0,0,0,0,1,1,1,1,1,1,1,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,6,7,8,9,10,15,20,25,30,35,40,45,50,56,63,69,75,80,85,90,95,100,100,100";
                strIQ = "64,64,65,65,65,65,65,65,65,65,65,65,66,66,66,66,66,66,66,66,66,66,66,67,67,67,67,67,67,67,67,67,67,68,68,68,68,69,69,70,71,71,75,78,82,85,89,92,96,99,104,108,112,117,120,124,127,131,134,137,140";

            } else if (16.5 <= floAge && floAge < 17) {
                strLevel = "0,0,0,0,1,1,1,1,1,1,1,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,5,5,5,5,6,8,9,10,14,18,21,25,31,38,44,50,56,63,69,75,80,85,90,95,100,100,100";
                strIQ = "64,64,65,65,65,65,65,65,65,65,65,65,65,65,66,66,66,66,66,66,66,67,67,67,67,67,67,67,67,67,67,67,67,67,68,68,68,68,69,70,70,71,74,77,79,82,86,91,95,99,104,108,112,117,120,124,127,131,134,137,140";

            } else if (17 <= floAge && floAge < 20) {
                strLevel = "0,0,0,0,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,7,8,10,12,14,16,19,21,23,25,30,35,40,45,50,58,67,75,83,90,95,100,100";
                strIQ = "64,64,65,65,65,65,65,65,65,65,65,65,65,66,66,66,66,66,66,66,66,66,66,67,67,67,67,67,67,67,67,67,67,67,68,68,68,68,69,70,71,73,74,76,77,79,80,82,85,89,92,96,99,105,111,117,122,127,131,137,140";

            } else if (20 <= floAge && floAge < 30) {
                strLevel = "0,0,0,0,1,1,1,1,1,1,2,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,5,6,7,8,9,10,13,15,18,20,23,25,29,33,38,42,46,50,56,63,69,75,83,90,95,100,100,100";
                strIQ = "64,64,65,65,65,65,65,65,65,65,65,66,66,66,66,66,66,66,66,66,66,67,67,67,67,67,67,67,67,67,68,68,68,68,69,69,70,71,71,73,75,77,78,80,82,85,88,91,94,96,99,104,108,112,117,122,127,131,134,138,141";

            } else if (30 <= floAge && floAge < 40) {
                strLevel = "0,0,0,0,1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,6,6,7,7,8,8,9,9,10,13,15,18,20,23,25,30,35,40,45,50,56,63,69,75,79,83,86,90,95,100,100,100";
                strIQ = "64,64,65,65,65,65,65,65,65,65,66,66,66,66,66,66,66,66,67,67,67,67,67,67,67,67,68,68,68,68,69,69,69,70,70,71,71,71,73,75,77,78,80,82,85,89,92,96,99,104,108,112,117,119,122,125,127,131,134,138,141";

            } else if (40 <= floAge && floAge < 50) {
                strLevel = "0,0,0,1,1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,3,4,4,4,4,4,4,5,5,5,7,8,10,12,13,15,16,18,19,21,22,24,25,29,33,38,42,46,50,58,67,75,78,81,84,87,90,93,95,98,100,100";
                strIQ = "64,64,65,65,65,65,65,65,65,65,66,66,66,66,66,66,66,66,67,67,67,67,67,67,67,67,68,68,68,69,70,71,72,73,75,76,77,78,79,80,81,82,85,88,91,94,96,99,105,111,117,119,121,123,125,127,129,131,133,134,136";

            } else if (50 <= floAge && floAge < 60) {
                strLevel = "0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,10,11,12,13,15,16,17,18,19,20,22,23,24,25,28,31,34,38,41,44,47,50,54,58,63,67,71,75,78,80,83,85,88,95,98,100,100,100,100,100";
                strIQ = "64,65,65,65,65,65,65,66,66,66,66,66,66,67,67,67,67,67,67,68,68,71,72,73,74,75,75,76,77,79,79,79,80,81,82,84,86,88,91,93,95,97,99,102,105,108,111,114,117,119,120,122,124,126,130,133,134,135,137,139,141";

            } else if (60 <= floAge && floAge < 70) {
                strLevel = "0,0,1,1,1,2,2,2,2,2,3,3,3,3,4,4,4,5,5,6,7,8,10,12,14,16,18,20,21,23,25,28,32,36,39,42,46,50,53,55,58,61,64,67,69,72,75,78,80,83,85,88,90,93,95,98,100,100,100,100,100";
                strIQ = "64,65,65,65,65,65,65,66,66,66,66,66,67,67,67,67,68,68,68,68,69,70,71,73,74,75,77,78,79,80,82,84,87,89,92,94,97,99,101,103,105,107,109,111,113,115,117,119,120,122,124,126,127,129,131,133,134,136,138,139,141";

            } else {
                strLevel = "0,0,1,1,1,1,2,2,2,3,3,3,4,4,4,5,5,5,10,12,14,16,17,19,21,23,25,28,32,36,40,43,46,50,52,55,57,59,62,64,66,68,70,73,75,78,81,84,87,90,92,93,95,97,98,100,100,100,100,100,100";
                strIQ = "64,65,65,65,65,65,66,66,66,66,67,67,67,67,67,68,68,68,71,72,74,75,76,78,79,81,82,84,87,89,92,94,97,99,101,103,105,106,107,109,110,112,114,115,117,119,121,123,125,127,129,130,131,132,133,134,136,137,138,139,140";

            }

            String[] aLevel = strLevel.split(",");
            String[] aIQ = strIQ.split(",");

            vFactorA[1] = Integer.parseInt(aLevel[vFactorA[0]]);
            vFactorA[2] = Integer.parseInt(aIQ[vFactorA[0]]);

            ClsScore.Rw rw = new ClsScore.Rw();
            rw.setCorrectAmount_o(vFactorA[0]);
            rw.setLevel_o(vFactorA[1]);
            rw.setIQ_o(vFactorA[2]);
            rw.setZjbb_o(vFactorA[3]);
            rw.setLtbj_o(vFactorA[4]);
            rw.setBjtl_o(vFactorA[5]);
            rw.setXlgx_o(vFactorA[6]);
            rw.setCxtl_o(vFactorA[7]);

            result.setObject(rw);

            return result;
        } catch (ArithmeticException e) {
            result.setMessage(e.toString());
            return result;
        }

    }

    private String[] GetRwReport(Map map) {
        // 下面因子名称字段改成.toLowerCase()小写，是因为JAVA转json的时候会把大写字母转成小写字母
        // 第一个，错误信息；第二个，量表得分部分；第三个，量表指导意见_d数组部分
        String[] strResult = {"", "", "", "", ""};
        // String[] strResult = {"","",""};
        try {
            int i = 0;
            String[] gcName = "智商数,知觉辨别能力(共12题)正确题数,类同比较能力(共12题)正确题数,比较推理能力(共12题)正确题数,系列关系能力(共12题)正确题数,抽象推理能力(共12题)正确题数"
                    .split(",");
            String[] gdName = "智商数,A(共12题)正确题数,B(共12题)正确题数,C(共12题)正确题数,D(共12题)正确题数,E(共12题)正确题数".split(",");
            String[] geName = "iQ,zjbb,ltbj,bjtl,xlgx,cxtl".split(",");

            String[] gvName = {};
            switch (g_CorE) {
                case 1:
                    gvName = gcName;
                    break;
                case 2:
                    gvName = gdName;
                    break;
            }
            if (g_inblFactor) // 因子得分
            {
                strResult[1] += "<table cellpadding='0' cellspacing='0' width='100%' border='0'>";
                strResult[1] += "<tr><td" + subTitle(0, tWidth * 3) + ">正确题数(共60题)</td><td" + subValue(0, -1) + ">"
                        + map.get("correctAmount_o") + "</td>" + "<td" + subTitle(0, tWidth + oWidth)
                        + ">智力百分等级</td><td" + subValue(0, -1) + ">" + map.get("level_o") + "%</td></tr>";

                for (i = 0; i < gcName.length; i++) {
                    strResult[1] += "<tr><td" + subTitle(0, -1) + ">" + gvName[i] + "</td>" + "<td colspan='3'"
                            + subValue(0, -1) + ">" + String.valueOf(map.get(geName[i] + "_o")) + "</td></tr>";

                }

                strResult[1] += "</table>";
            }

            if (Integer.valueOf(map.get("level_o").toString()) < 5) {
                strResult[3] = "*";
                strResult[4] = "智力百分等级异常";
            } else {
                strResult[3] = "0";
                strResult[4] = "正常";
            }

            return strResult;
        } catch (ArithmeticException e) {
            strResult[0] = "失败";
            return strResult;
        }

    }


}
